--------------------------------------------------------------------------------------------------------------
      name:  <unnamed>
       log:  C:\Users\rball\Downloads\Project\Output/DataAppendixOutput/year_frequency.log
  log type:  text
 opened on:  12 May 2025, 12:35:37

. 
. * Make clean frequency table for 'year'
. tabulate year, sort

       year |      Freq.     Percent        Cum.
------------+-----------------------------------
       2010 |         51       11.11       11.11
       2011 |         51       11.11       22.22
       2012 |         51       11.11       33.33
       2013 |         51       11.11       44.44
       2014 |         51       11.11       55.56
       2015 |         51       11.11       66.67
       2016 |         51       11.11       77.78
       2017 |         51       11.11       88.89
       2018 |         51       11.11      100.00
------------+-----------------------------------
      Total |        459      100.00

. 
. * Bar graph for 'year' variable BEFORE collapsing
. graph bar (count), over(year, sort(ascending) label(angle(0) labsize(medium))) bar(1, color(blue)) title("Nu
> mber of Observations by Year") ytitle("Count") legend(off)

. 
. * Save bar chart
. graph export "Output/DataAppendixOutput/bar_year.png", replace
file Output/DataAppendixOutput/bar_year.png saved as PNG format

. 
. * Now create a mini frequency table
. contract year

. sort year

. 
. * Display clean frequency table
. list year _freq, clean

       year   _freq  
  1.   2010      51  
  2.   2011      51  
  3.   2012      51  
  4.   2013      51  
  5.   2014      51  
  6.   2015      51  
  7.   2016      51  
  8.   2017      51  
  9.   2018      51  

. 
. * Close log file
. log close
      name:  <unnamed>
       log:  C:\Users\rball\Downloads\Project\Output/DataAppendixOutput/year_frequency.log
  log type:  text
 closed on:  12 May 2025, 12:35:39
--------------------------------------------------------------------------------------------------------------
